package com.modules.controller.data;

import com.common.vo.Result;
import com.modules.entity.project.ScanEntity;
import com.modules.service.data.FaceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 人力资源大屏数据（要是用不到可删除）
 * </p>
 *
 * @author yyq
 * @since 2023-02-21
 */
@RestController
@Api(value="/data/face", tags = "人力资源大屏数据")
@RequestMapping(value="/data/face")
public class FaceController{

    @Resource
    private FaceService faceService;


    /**
     * 查询所有出勤统计
     * @return
     */
    @PostMapping("/selectAttendCount")
    @ApiOperation(value = "查询所有出勤统计接口", notes = "查询所有出勤统计接口" , httpMethod = "POST")
    public Result<?> selectAttendCount(){
        return faceService.selectAttendCount();
    }

    /**
     * 查询所有分包统计
     * @return
     */
    @PostMapping("/selectContractor")
    @ApiOperation(value = "查询所有分包统计", notes = "查询所有分包统计" , httpMethod = "POST")
    public Result<?> selectContractor(){
        return faceService.selectContractor();
    }

    /**
     * 查询所有班组统计
     * @return
     */
    @PostMapping("/selectGroup")
    @ApiOperation(value = "查询所有班组统计", notes = "查询所有班组统计" , httpMethod = "POST")
    public Result<?> selectGroup(){
        return faceService.selectGroup();
    }

    /**
     * 查询最后八天通行记录
     * @return
     */
    @PostMapping("/selectScan8")
    @ApiOperation(value = "查询最后八天通行记录", notes = "查询最后八天通行记录" , httpMethod = "POST")
    public Result<?> selectScan8(ScanEntity scanEntity){
        return faceService.selectScan8(scanEntity);
    }

    /**
     * 获取大屏设置名称
     * @return
     */
    @PostMapping("/selectDataName")
    @ApiOperation(value = "获取大屏设置名称", notes = "获取大屏设置名称" , httpMethod = "POST")
    public Result<?> selectDataName(){
        return faceService.selectDataName();
    }







}
